package info;

import java.io.Serializable;
import java.sql.Date;

public class Ticket implements Serializable {
    private String Flight;
    private java.sql.Date Fdate;
    private String Fclass;
    private Float Price;
    private int Tickets;

    public Ticket(){

    }

    public Ticket(String flight, Date fdate, String fclass, Float price, int tickets) {
        Flight = flight;
        Fdate = fdate;
        Fclass = fclass;
        Price = price;
        Tickets = tickets;
    }

    public String getFlight() {
        return Flight;
    }

    public void setFlight(String flight) {
        Flight = flight;
    }

    public Date getFdate() {
        return Fdate;
    }

    public void setFdate(Date fdate) {
        Fdate = fdate;
    }

    public String getFclass() {
        return Fclass;
    }

    public void setFclass(String fclass) {
        Fclass = fclass;
    }

    public Float getPrice() {
        return Price;
    }

    public void setPrice(Float price) {
        Price = price;
    }

    public int getTicket() {
        return Tickets;
    }

    public void setTicket(int ticket) {
        Tickets = ticket;
    }

    @Override
    public String toString() {
        return "Ticket{" +
                "Flight='" + Flight + '\'' +
                ", Fdate=" + Fdate +
                ", Fclass='" + Fclass + '\'' +
                ", Price=" + Price +
                ", Ticket=" + Tickets +
                '}';
    }
}
